Installation
Developers
1. Install Requirements
- MongoDB Server version 4.4 or higher
- NodeJs version 18 or higher
- Yarn latest version
2. Clone Repo
clone repository from github
git clone https://github.com/idehweb/nodeeweb.git
3. Install Packages
change into directory which you want, in this example we want to install Nodeeweb Core
cd core
install packages
yarn
4. Environment variables
copy .env
file in root directory into .env.local
in same path
cp .env .env.local
fill environment variables which define in .env.local
file
# example of .env.local
PORT=2758
DB_NAME="NodeewebCore"
NODE_ENV="local"
LOG_TO_FILE=false
ADMIN_EMAIL="[email protected]"
ADMIN_USERNAME="admin"
ADMIN_PASSWORD="admin"
STATIC_SERVER=true
SHARED_PATH=./shared
AUTH_SECRET="my-core-auth-secret"
MONGO_URL="mongodb://127.0.0.1:27017"
NODEEWEBHUB_API_BASE_URL="https://nodeeweb.com/api/v1"
5. Run
try to run application with below commands:
# execute and watch
yarn dev
# execute
yarn start:ts